/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fourplay.ai;

import fourplay.frontEnd.State;

/**
 *
 * @author CJ
 */
public class Node {

    protected int depth;
    protected State state;
    protected int move;
    protected int heristic_value;

    public Node(State state, int depth, int move){
        this.depth = depth;
        this.state = state;
        this.move = move;
    }

    public int getValue(){
        return this.heristic_value;
    }

    public void setValue(int value){
        this.heristic_value = value;
    }

    public int getDepth(){
        return this.depth;
    }

    public State getState(){
        return this.state;
    }

    public int getMove(){
        return this.move;
    }

    public String toString(){
        return this.state.toString() +
                "\n Depth of State is : " + this.depth + '\n';
    }

}
